﻿using System;

namespace Microsoft.CSA.FeedSync.FeedSyncLibrarySL
{
    public class Constants
    {
        public const string FEEDSYNC_XML_NAMESPACE_PREFIX = "sx";
        public const string FEEDSYNC_XML_NAMESPACE_URI = "http://feedsync.org/2007/feedsync";

        public const string SHARING_ELEMENT_NAME = "sharing";
        public const string RELATED_ELEMENT_NAME = "related";
        public const string SYNC_ELEMENT_NAME = "sync";
        public const string HISTORY_ELEMENT_NAME = "history";
        public const string CONFLICTS_ELEMENT_NAME = "conflicts";

        public const string SINCE_ATTRIBUTE = "since";
        public const string UNTIL_ATTRIBUTE = "until";
        public const string EXPIRES_ATTRIBUTE = "expires";
        public const string TYPE_ATTRIBUTE = "type";
        public const string TITLE_ATTRIBUTE = "title";
        public const string LINK_ATTRIBUTE = "link";
        public const string ID_ATTRIBUTE = "id";
        public const string UPDATES_ATTRIBUTE = "updates";
        public const string NO_CONFLICTS_ATTRIBUTE = "noconflicts";
        public const string DELETED_ATTRIBUTE = "deleted";
        public const string SEQUENCE_ATTRIBUTE = "sequence";
        public const string WHEN_ATTRIBUTE = "when";
        public const string BY_ATTRIBUTE = "by";

        public const string RELATED_TYPE_COMPLETE = "complete";
        public const string RELATED_TYPE_AGGREGATED = "aggregated";

        public const string RSS_FEED_TEMPLATE = "<?xml version='1.0' encoding='utf-8'?><rss version='2.0' xmlns:sx='" + FEEDSYNC_XML_NAMESPACE_URI + "'><channel><title>{0}</title><description>{1}</description><link>{2}</link></channel></rss>";
        public const string RSS_ITEM_ELEMENT_NAME = "item";
        public const string RSS_TITLE_ELEMENT_NAME = "title";
        public const string RSS_DESCRIPTION_ELEMENT_NAME = "description";
        public const string RSS_CHANNEL_ELEMENT = "channel";
        public const string RSS_LINK_ELEMENT_NAME = "link";

        public const string DATE_STRING_FORMAT = "yyyy-MM-ddTHH:mm:ssZ";

        public static readonly System.Xml.Linq.XNamespace FeedSyncXNamespace = FEEDSYNC_XML_NAMESPACE_URI;

    }
}
